<template>
	<view class="home">
		<view class="lunbo">
			<swiper indicator-dots="true" indicator-active-color="#ffffff" interval="2000" circular="true" current="0"
				autoplay="true" class="linb">
				<swiper-item v-for="(v,i,index) in arr" :key="v.id">
					<image :src="v.scr"></image>
				</swiper-item>
			</swiper>
		</view>
		<view class="dian">
			<view class="daincan" @click="daincantiaozhuan">
				<view>
					<image src="../../static/image/dfan.jpg" mode=""></image>
				</view>
				<text class="d1">点餐</text>
				<text class="d2">在线点单到店取</text>
			</view>
			<text class="xian"></text>
			<view class="waimai" @click="daincantiaozhuan">
				<view >
					<image src="../../static/image/wmaid.jpg" mode=""></image>
				</view>
				<text class="d1 d3">外卖</text>
				<text class="d2">外卖下单送到家</text>
			</view>
		</view>
		<view class="zhanwei">
			
		</view>
		<view class="dimian">
			<view class="left">
				<view class="qu">
				<text class="zi">趣开小不点</text>
				<text class="ri-arrow-right-circle-line wentu"></text>
				</view>
				<text class="mi">请好友来喝您定制的饮料</text>
			</view>
			<view class="ke">
				<image src="../../static/image/ke.jpg" mode=""></image>
			</view>
		</view>
		<view class="die">
			<text class="dian1"></text>
			<text class="dian2"></text>
			<text class="dian3"></text>
			<text class="xiao">小</text>
			<text class="bu">不</text>
			<text class="dian5">点</text>
			<text class="dian3"></text>
			<text class="dian2"></text>
			<text class="dian1"></text>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				arr: [{
						id: 1,
						scr: "https://qincore.cn/xbk/season/18-16-12.png"
					},
					{
						id: 2,
						scr: "https://qincore.cn/xbk/season/18-15-43.png"
					},
					{
						id: 3,
						scr: "https://qincore.cn/xbk/season/18-16-28.png"
					},
					{
						id: 4,
						scr: "https://qincore.cn/xbk/season/18-17-16.png"
					}
				]
			}
		},
		methods:{
			// 跳转到外卖页面
			daincantiaozhuan(){
				uni.navigateTo({
				    url: '/pages/Home/Oneself'
				});
			},
			huangkuaishuliang(){
				console.log(1)
			}
		}
	}
</script>
<style lang="less">
// @import url("../../static/font/iconfont.css");
// @import url("../../static/font/iconfont.css");
	.home {
		width: 750rpx;
		background-color: #f3f3f3;
		position: replace;
		.zhanwei{
			width: 688rpx;
			height: 280rpx;
		}
		.lunbo {
			width: 750rpx;
			height: 500rpx;

			.linb {
				width: 750rpx;
				height: 500rpx;

				swiper-item {
					width: 750rpx;
					height: 500rpx;

					image {
						width: 750rpx;
						height: 500rpx;
					}

				}
			}
		};
		.dian {
			width: 688rpx;
			height: 300rpx;
			margin: 0 auto;
			display: flex;
			justify-content: space-around;
			align-items: center;
			background-color: #FFFFFF;
			border: 1rpx solid #FFFFFF;
			border-radius: 30rpx;
			position: absolute;
			top: 450rpx;
			left: 29rpx;
			
			.xian{
				width: 1rpx;
				height: 197rpx;
				background-color: #d5d5d5;
			}
			.daincan,
			.waimai {
				width: 344rpx;
				height: 362rpx;
				margin-top: 100rpx;
				view{
					width: 90rpx;
					height: 130rpx;
					margin: 0 auto;
					
					// text-align: center;
					image {
						width: 90rpx;
						height: 130rpx;
						margin: 0 auto;
						// text-align: center;
					}
					
				}
				.d1{
					font-size: 34rpx;
					font-weight: bold;
					color: #4c4c4c;
					margin-top: 10rpx;
				}
					
				.d2{
					font-size: 20rpx;
					color: #6c6d6c;
					margin-top: 10rpx;
				}
				
				text {
					display: block;
					text-align: center;
				}
			}
		}
		.dimian{
			width: 694rpx;
			height: 211rpx;
			margin-top: 20rpx;
			display: flex;
			justify-content: space-around;
			align-items: center;
			background-color: #FFFFFF;
			border: 1rpx solid #ebeee3;
			margin: 0 auto;
			border-radius: 20rpx;
			.left{
				width: 347rpx;
				height: 200rpx;
				margin-top: 150rpx;
				margin-left: 40rpx;
				
				.qu{
					font-size: 34rpx;
					color: #000;
					.zi{
						font-size:34rpx ;
					}
					.wentu{
						margin-left: 10rpx;
						font-size:34rpx ;
						color: #006d4e;
					}
					
				}
				.mi{
					display: block;
					margin-top: 10rpx;
					font-size: 25rpx;
					color: #006d4e;
				}
			}
			.ke{
				width: 347rpx;
				height: 200rpx;
				image{
					width: 347rpx;
					height: 200rpx;
				}
			}
		}
		.die{
			width: 750rpx;
			height: 185rpx;
			margin-top: 30rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			.dian1{
				display: block;
				width: 10rpx;
				height: 10rpx;
				border-radius: 50%;
				background-color: #017f61;
				margin: 0 5rpx;
			}
			
			.dian2{
				display: block;
				width: 20rpx;
				height: 20rpx;
				border-radius: 50%;
				background-color: #017f61;
				margin: 0 5rpx;
			}.dian3{
				display: block;
				width: 30rpx;
				height: 30rpx;
				border-radius: 50%;
				background-color: #017f61;
				margin: 0 5rpx;
			}
			.xiao{
				color: #017f61;
				font-size: 70rpx;
				font-weight: bold;
				margin: 0 5rpx;
				// margin-left: 20rpx;
			}
			.bu,.dian5{
				color: #017f61;
				font-size: 50rpx;
				font-weight: bold;
				margin: 0 5rpx;
			}
		}
	}
</style>
